package cn.com.greatwall.flowable.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

import cn.com.greatwall.common.base.BaseEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * @Author herw
 * @Time 2020-09-01 09:50:54
 * @Version 1.0
 * @Description: TODO(用一句话描述该文件做什么)
 */
@Entity
@Getter
@Setter
@Table(name="form_making")
public class Form extends BaseEntity implements Serializable {
    @Id
    @Column(name = "form_id")
    @NotNull(groups = Update.class)
    @ApiModelProperty(value = "ID", hidden = true)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;
    
    @NotBlank
    @ApiModelProperty(value = "表单KEY")
    private String formKey;
    
    @NotBlank
    @ApiModelProperty(value = "表单名称")
    private String formName;
    
    @ApiModelProperty(value = "表单内容")
    private String formContent;
}
